package pers.mine.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pers.mine.dao.AreaMapper;
import pers.mine.po.Area;
import pers.mine.service.inter.AreaService;

/**
 * @author Mine
 * @since 2016年10月20日_上午11:36:31
 */
@Service
public class AreaServiceImpl implements AreaService {
	@Autowired
	private AreaMapper am;

	/**
	 * @see pers.mine.service.inter.AreaService#selectTopLevelCode()
	 */
	@Override
	public List<Area> selectTopLevelCode() {
		// 直接调用selectNextLevelCode(000000000000)
		return selectNextLevelCode("000000000000");
	}

	/**
	 * @see pers.mine.service.inter.AreaService#selectNextLevelCode(java.lang.String)
	 */
	@Override
	public List<Area> selectNextLevelCode(String upLevelCode) {
		// 调用mapper
		return am.selectNextLevelCode(upLevelCode);
	}

}
